package com.basic.business.linkBacklog.service;


import com.basic.business.kanban.vo.LinkManageCollectRespVo;
import com.basic.business.kanban.vo.LinkReplayPageReqVo;
import com.basic.business.kanban.vo.LinkReplayRespVo;
import com.basic.business.linkBacklog.domain.TLinkBacklog;
import com.basic.common.core.service.IBaseService;

import java.util.List;

/**
 * 链接待办事项Service接口
 *
 * @author zhaoxy_jn@163.com
 */
public interface ITLinkBacklogService extends IBaseService<TLinkBacklog> {

    public int insertBacklog(TLinkBacklog tLinkBacklog);

    /**
     * 链接数据复盘，获取已优化数据
     * @param linkReplayPageReqVo
     * @return
     */
    public List<LinkReplayRespVo> getOptimizeList(LinkReplayPageReqVo linkReplayPageReqVo);

    /**
     * 链接数据复盘汇总数据
     * @param linkReplayPageReqVo
     * @return
     */
    LinkManageCollectRespVo getLinkManageCollectData(LinkReplayPageReqVo linkReplayPageReqVo);

    /**
     * 根据商品id获取近1个月待办事项数量
     * @param goodsId
     * @return
     */
    public int getBackLogCountByGoodsId(String goodsId);

    /**
     * 处理超时待办事项
     */
    void handleTimeoutBacklog();
}
